package com.icas.util.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: tocchen
 * @Date: 2022/4/18 19:56
 * @Description 封装Token,替换Shiro原生的Token,需要实现{@link AuthenticationToken}接口
 **/
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
